package com.yc.cloud.openai.portal.dto.request;

import com.yc.cloud.openai.portal.enums.SpeechGender;
import com.yc.cloud.openai.portal.enums.SpeechToTextProvider;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
@Schema(name = "SpeechToTextRequest", description = "语音转文本请求参数")
public class SpeechToTextRequest {

    @Schema(description = "音频内容", example = "你好,欢迎使用openai开放平台的语音合成服务", hidden = true)
    @NotEmpty(message = "音频内容不能为空")
    private byte[] audioData;

    @Schema(description = "服务提供者", hidden = true)
    private String provider = SpeechToTextProvider.XUN_FEI.getKey();

//    @Schema(description = "发音人", example = "MAN", allowableValues = {"MAN", "WOMAN"}, defaultValue = "MAN")
//    private SpeechSpeaker speaker;

    //发音人性别
    @Schema(description = "发音人性别", example = "FEMALE", allowableValues = {"MAN", "FEMALE"}, defaultValue = "FEMALE")
    private SpeechGender gender = SpeechGender.FEMALE;
    ;


}
